namespace Company.BLL.Utils
{
    public class MaHS
    {
        public static bool Validate(string maHS, int numberOfCharacter)
        {
            if (maHS.Trim().Length != numberOfCharacter) return false;
            foreach (char c in maHS.ToCharArray())
            {
                if (!char.IsNumber(c)) return false;
            }
            return true;
        }
    }
}